import React from 'react'
import { useState } from 'react'
import Search from './component/Search'
import List from './component/List'
import './App.css'
export default function App() {
  const [users, setUsers] = useState([]);
  const [isFirst, setIsFirst] = useState(true);
  const [isLoding, setIsLoding] = useState(false);
  const [err, setErr] = useState(' ');
  let saveUsers = (users)=> {
    setUsers(users)
  }
  return (
    <div className="container">
      <Search saveUsers={saveUsers}/>
      <List users = {users} />
  </div>
  )
}
